package main

import (
	"fmt"
	"github.com/pkg/errors"
)

type Person struct {
	Age int `json:"age"`
}
func main() {
	n := Person{Age: 1}
	err := t1()
	err = errors.Wrapf(err, "添加",n)//添加%!(EXTRA main.name={1}): djfsjdfjds
	fmt.Println(err.Error())
}

func t1() error {
	return fmt.Errorf("djfsjdfjds")
}
